package mortal.game.control
{
    import modules.*;
    import mortal.game.events.*;
    import mortal.game.mvc.*;
    import mortal.mvc.core.*;
    import mortal.mvc.interfaces.*;

    public class PackBuyItemController extends Controller
    {
        private var _packBuyItemModule:WareHouseBuyItemModule;

        public function PackBuyItemController()
        {
            
        }

        override protected function initView() : IView
        {
            this._packBuyItemModule = new WareHouseBuyItemModule();
            return this._packBuyItemModule;
        }

        override protected function initServer() : void
        {
            Dispatcher.addEventListener(EventName.PackFastBuyPackage, this.onPackFastBuyPackage);
            
        }

        private function onPackFastBuyPackage(event:DataEvent) : void
        {
            view.show();
            
        }

    }
}
